Fix bugs #13623 and 13626 caused by changes in revision 111647.
authorEli Zaretskii <eliz@gnu.org>
Mon, 4 Feb 2013 15:39:55 +0000 (17:39 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 4 Feb 2013 15:39:55 +0000 (17:39 +0200)
commit4f6d03f073eda2479143ba16e9f7df60196fad57
tree9389413cf95a00e029a07705a9c513dc6559ccd1
parent09460523662dbdf235b7b819d19c020e91cde939
Fix bugs #13623 and 13626 caused by changes in revision 111647.

 src/xdisp.c (window_buffer_changed): region_showing can be negative,
 which still means region is being displayed.
 (redisplay_internal): Resurrect code that forced redisplay of the
 whole window when showing region and the mark has changed.  Record
 the new mark position to allow redisplay optimizations.
 (display_line): If it->region_beg_charpos is non-zero, set the
 window's region_showing member to -1.
 src/window.h (struct window) <region_showing>: Declare ptrdiff_t,
 not bitfield of 1 bit.
src/ChangeLog
src/window.h
src/xdisp.c